
from sqlalchemy import Column, Integer, String, Boolean
from .database import Base

# User继承Base类
class User(Base):
    __tablename__ = "users"
    id = Column(Integer, primary_key=True, index=True)
    username = Column(String(20), unique=True, index=True)
    password = Column(String(100))
    email = Column(String(50), unique=True, index=True)
    is_active = Column(Boolean, default=True)
